﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>新建页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="shortcut icon" href="/images/favicon.ico" />
    <link href="/css/fyyui.css" rel="stylesheet" />
    <script src="/js/jquery.js"></script>
    <script src="/js/fyyui.js"></script>
    <script type="text/javascript">
        $(
            function () {
                initSelect({
                    id: 'seledu',
                    text: '教育程度',
                });

                bindSelect({
                    id: 'seledu',
                    ds: [
                        { name: "本科", code: "1" },
                        { name: "专科", code: "2" }
                    ]
                });

                initSelect({
                    id: 'selmajor',
                    text: '专业',
                });

                bindSelect({
                    id: 'selmajor',
                    ds: [
                        { name: "计算机", code: "1" },
                        { name: "软件工程", code: "2" }
                    ]
                });

                var _id = getUrlVar('id');
                if (_id != '') {
                    bindEditForm({
                        id: 'frm0',
                        url: '/api/Cust/GetCust',
                        props: { id: getUrlVar('id') }
                    });
                }
            }
        )

        function save() {
            doSave({
                id: 'frm0',
                url: '/api/Cust/AddCust',
                props: { id: getUrlVar('id') }
            });
        }
    </script>
</head>
<body>
    <div class="f-toolbar">
        <input type="button" class="f-ret-button" value="返回" onclick="history.go(-1);">
        <input type="button" class="f-hidden f-width12px">
        <input type="button" id="btnEdit" class="f-button" value="保存" onclick="save();">
    </div>
    <ul class="f-form-tab">
        <li><a href="javascript:showTab(0);" class="nav nav-0 curnav"><span>基本信息</span></a></li>
        <li><a href="javascript:showTab(1);" class="nav nav-1"><span>扩展信息</span></a></li>
    </ul>
    <div id="fragment-0" class="fragment fragment0">
        <div id="frm0" class="f-form">
            <div class="tip">姓名</div>
            <div class="field-200px">
                <input type="text" f-formfield="name" id="txtname" class="f-txtbox">
            </div>
            <div class="f-clear"></div>
        </div>
    </div>
    <div id="fragment-1" class="fragment fragment1 f-hide">
        <div id="frm1" class="f-form">
            <div class="tip">教育程度</div>
            <div class="field-200px">
                <div id="seledu" f-formfield="edu" class="f-select f-left"></div>
            </div>
            <div class="f-mclear"></div>
            <div class="tip">专业</div>
            <div class="field-200px">
                <div id="selmajor" f-formfield="major" class="f-select f-left"></div>
            </div>
            <div class="f-clear"></div>
        </div>
    </div>
</body>
</html>